package com.learning.beginningspring.ch6.app;

import javax.sql.DataSource;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.transaction.PlatformTransactionManager;

import com.learning.beginningspring.ch6.config.Ch6Configuration;

public class Main {

	public static void main(String[] args) {
		ApplicationContext applicationContext =new AnnotationConfigApplicationContext(Ch6Configuration.class);
		PlatformTransactionManager transactionManager = applicationContext.getBean(PlatformTransactionManager.class);
		System.out.println(transactionManager!=null);
	}

}
